package de.slothsoft.wasbinich.swingclient.database;

import java.util.Locale;

import de.slothsoft.wasbinich.core.ApplicationInfo;
import de.slothsoft.wasbinich.core.database.DatabaseException;
import de.slothsoft.wasbinich.core.database.webservice.AbstractWebserviceApplicationBean;
import de.slothsoft.wasbinich.core.database.webservice.RestCommunicator;
import de.slothsoft.wasbinich.swingclient.WasBinIchSwingClient;

public class SwingWebserviceApplicationBean extends AbstractWebserviceApplicationBean {

    public static final Locale[] SUPPORTED_LANGUAGES = { Locale.GERMAN, Locale.ENGLISH };

    public SwingWebserviceApplicationBean(RestCommunicator communicator) {
	super(communicator);
    }

    @Override
    public ApplicationInfo getClientInfo() throws DatabaseException {
	ApplicationInfo info = new ApplicationInfo();
	info.supportedLanguages = SUPPORTED_LANGUAGES;
	info.version = WasBinIchSwingClient.APPLICATION_VERSION;
	return info;
    }
}
